﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="Rooms.aspx.cs" Inherits="EHotelMS.View.Admin.WebForm1" EnableEventValidation="false"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MyBody" runat="server">
    <!--<h1 class="text-pink">客房管理</h1>-->

    <div class="container-fluid">
        <div class="row">
            <div class="col-4"></div>
            <div class="col-4">
                <h1 class="text-pink text-center">客房管理</h1>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row">
            <div class="col-md-3">
                <form>
                    <div class="mb-3">
                        <label for="RNameTb" class="form-label">客房名稱</label>
                        <input type="text" class="form-control" id="RNameTb" runat="server" required="required">
                    </div>
                    <div class="mb-3">
                        <label for="CatCb" class="form-label">房型</label>
                        <asp:DropDownList ID="CatCb" runat="server" class="form-control"></asp:DropDownList>
                    </div>
                    <div class="mb-3">
                        <label for="LocationTb" class="form-label">位置</label>
                        <input type="text" class="form-control" id="LocationTb" runat="server" required="required">
                    </div>
                    <div class="mb-3">
                        <label for="CostTb" class="form-label">價格</label>
                        <input type="text" class="form-control" id="CostTb" runat="server" required="required">
                    </div>
                    <div class="mb-3">
                        <label for="RemarksTb" class="form-label">標簽</label>
                        <input type="text" class="form-control" id="RemarksTb" runat="server" required="required">
                    </div>
                    <div class="mb-3">
                        <label for="CatCb" class="form-label">狀態</label>
                        <asp:DropDownList ID="StatusCb" runat="server" class="form-control">
                            <asp:ListItem>空閑</asp:ListItem>
                            <asp:ListItem>已預定</asp:ListItem>
                        </asp:DropDownList>
                    </div>

                    <div class="row">
                        <div class="col d-grid">
                            <asp:Button ID="EditBtn" runat="server" Text="編輯" class="btn btn-warning btn-block" OnClick="EditBtn_Click1"  />
                        </div>
                        <div class="col d-grid">
                            <asp:Button ID="DeleteBtn" runat="server" Text="刪除" class="btn btn-danger btn-block" OnClick="DeleteBtn_Click1"  />
                        </div>

                    </div>
                    <br />
                    <div class="d-grid">
                        <label id="ErrMsg" runat="server" class="text-danger"></label>
                        <asp:Button ID="SaveBtn" runat="server" Text="保存" class="btn btn-pink btn-block" OnClick="SaveBtn_Click1" />

                    </div>
                    &nbsp;<br />

                </form>
            </div>
            <div class="col-md-9">
                <asp:GridView ID="RoomsGV" runat="server" class="table" AutoGenerateSelectButton="True" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" OnSelectedIndexChanged="RoomsGV_SelectedIndexChanged1">
                    <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                    <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                    <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                    <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FFF1D4" />
                    <SortedAscendingHeaderStyle BackColor="#B95C30" />
                    <SortedDescendingCellStyle BackColor="#F1E5CE" />
                    <SortedDescendingHeaderStyle BackColor="#93451F" />
                </asp:GridView>
            </div>
        </div>
    </div>

</asp:Content>

